﻿namespace CommonAPI.Utils;

public static class Constants {
    /// <summary>
    /// 数字
    /// </summary>
    public const string SingleNumbers = "0123456789";
    public static readonly IReadOnlyList<int> SingleNumberList = SingleNumbers.Select(c => int.Parse(c.ToString())).ToList();
    /// <summary>
    /// 字母
    /// </summary>
    public const string LowerCaseAlphabet = "abcdefghijklmnopqrstuvwxyz";
    public static readonly IReadOnlyList<char> LowerCaseAlphabetList = LowerCaseAlphabet.ToCharArray();
    public static readonly IReadOnlyList<char> UpperCaseAlphabet = LowerCaseAlphabet.Select(char.ToUpper).ToList();
    /// <summary>
    /// 数字和字母
    /// </summary>
    public const string Letters = SingleNumbers + LowerCaseAlphabet;
}
